package com.platform.service.impl;

import com.platform.dao.SpecificationDao;
import com.platform.entity.SpecificationEntity;
import com.platform.service.SpecificationService;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("specificationService")
public class SpecificationServiceImpl implements SpecificationService {

  @Autowired
  private SpecificationDao specificationDao;

  @Override
  public SpecificationEntity queryObject(Integer id) {
    return specificationDao.queryObject(id);
  }

  @Override
  public List<SpecificationEntity> queryList(Map<String, Object> map) {
    return specificationDao.queryList(map);
  }

  @Override
  public int queryTotal(Map<String, Object> map) {
    return specificationDao.queryTotal(map);
  }

  @Override
  public void save(SpecificationEntity specification) {
    specificationDao.save(specification);
  }

  @Override
  public void update(SpecificationEntity specification) {
    specificationDao.update(specification);
  }

  @Override
  public void delete(Integer id) {
    specificationDao.delete(id);
  }

  @Override
  public void deleteBatch(Integer[] ids) {
    specificationDao.deleteBatch(ids);
  }

}
